package com.project.server.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.server.entity.HealthRecord;
import com.project.server.vo.HealthReportVO;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;

public interface HealthRecordService {
    Page<HealthRecord> getRecordList(Long userId, Integer current, Integer size, Integer type);
    void addRecord(HealthRecord record);
    void deleteRecord(Long id);
    void exportRecords(Long userId, Integer type, String startDate, String endDate, HttpServletResponse response);
    HealthReportVO generateHealthReport(Long userId, String startDate, String endDate);
    List<HealthRecord> getLatestRecords(Long userId);
}
